﻿using System;
using System.ComponentModel;
using Dapper.Contrib.Extensions;

namespace Topro.Entity.Tables
{
	/// <summary>
	/// 库存
	/// </summary>
	[Table("t_inventory")]
	public class Inventory
	{
		/// <summary>
		/// 编号
		/// </summary>
		[Description("编号")]
		public int Id { get; set; }
		/// <summary>
		/// 父级编号
		/// </summary>
		[Description("父级编号")]
		public int ParentId { get; set; }
		/// <summary>
		/// 类型
		/// </summary>
		[Description("类型")]
		public int OrderType { get; set; }
		/// <summary>
		/// 资源编号
		/// </summary>
		[Description("资源编号")]
		public String ResourceId { get; set; }
		/// <summary>
		/// 来源单据
		/// </summary>
		[Description("来源单据")]
		public string SourceId { get; set; }
		/// <summary>
		/// 库位编号
		/// </summary>
		[Description("库位编号")]
		public int WarehouseUnitId { get; set; }
		/// <summary>
		/// 容器编码
		/// </summary>
		[Description("容器编码")]
		public int ContainerCode { get; set; }
		/// <summary>
		/// 是否空容
		/// </summary>
		[Description("是否空容")]
		public int IsContainer { get; set; }
		/// <summary>
		/// 坐标
		/// </summary>
		[Description("坐标")]
		public int Coordinate { get; set; }
		/// <summary>
		/// 料号
		/// </summary>
		[Description("料号")]
		public string PartNo { get; set; }
		/// <summary>
		/// 物料编号
		/// </summary>
		[Description("物料名称")]
		public string ProductName { get; set; }
		/// <summary>
		/// 数量
		/// </summary>
		[Description("数量")]
		public decimal Qty { get; set; }
		/// <summary>
		/// 库存数量
		/// </summary>
		[Description("库存数量")]
		public decimal InventoryQty { get; set; }
		/// <summary>
		/// 物料批号
		/// </summary>
		[Description("物料批号")]
		public string LotNo { get; set; }
		/// <summary>
		/// 等级
		/// </summary>
		[Description("等级")]
		public string Grade { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		[Description("备注")]
		public string Remark { get; set; }
		/// <summary>
		/// 状态
		/// </summary>
		[Description("状态")]
		public int Status { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		[Description("创建人")]
		public int CreatedBy { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		[Description("创建时间")]
		public DateTime CreateTime { get; set; }
	}
}
